package com.cqut.mapper;

import com.cqut.entity.FileAttachment;
import com.cqut.entity.FileDirectory;

import java.util.List;

public interface FileMapper {
    Integer insetAFile(FileAttachment fileAttachment);

    Integer deleteAFile(FileAttachment fileAttachment);

    Integer updateFile(String fullPath,String parentDirName,String oldPath,String update_time);

    Integer createDir(FileDirectory directory);

    Integer deleteDir(String fullPath);

    Integer updateDir(String dirName,String fullPath,String update_time,String parentDirName,String originalPath);
    List<FileAttachment> getFileList(String targetDir,String uploader);

    List<FileDirectory> getDirList(String targetDir,String uploader);

    FileAttachment getFile(String fullPath);

    FileDirectory getDir(String fullPath);
}
